home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / fido / mmail.000 / mmail / mmail.0.1 / interface / welcome.cc < prev   
Encoding:
C/C++ Source or Header  |  1996-01-27  |  1.6 KB  |  55 lines

  1. /*
  2.  * MultiMAIL offline mail reader
  3.  * 
  4.  
  5.    Written by Kolossvary Tamas (thomas@vma.bme.hu)
  6.  
  7.    This program is free software; you can redistribute it and/or modify
  8.    it under the terms of the GNU General Public License as published by
  9.    the Free Software Foundation; either version 2, or (at your option)
  10.    any later version.
  11.  
  12.    This program is distributed in the hope that it will be useful,
  13.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.    GNU General Public License for more details.
  16.  
  17.    You should have received a copy of the GNU General Public License
  18.    along with this program; if not, write to the Free Software
  19.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  20.  
  21. #include "interface.h"
  22.  
  23. void Welcome :: ReDraw()
  24. {
  25.  touchwin(window);
  26.  wnoutrefresh(window);
  27. }
  28.  
  29. void Welcome :: MakeActive(void)
  30. {
  31.  init_pair(30, COLOR_YELLOW, COLOR_BLUE);
  32.  init_pair(10, COLOR_CYAN, COLOR_BLUE);
  33.  window=newwin(8, 50, 2, 15);
  34.  wattrset(window, COLOR_PAIR(30) | A_BOLD);
  35.  for(int i=0; i < 8*50; i++)
  36.     waddch(window, ' ');
  37.  wborder(window, 0, 0, 0, 0, 0, 0, 0, 0);
  38.  
  39.  mvwaddstr(window, 1, 1, "              Welcome to MultiMAIL,"); 
  40.  mvwaddstr(window, 2, 1, "      the first Bluewave reader for Linux!");
  41.  wattrset(window, COLOR_PAIR(10) | A_BOLD);
  42.  mvwaddstr(window, 4, 2, "authors:");
  43.  mvwaddstr(window, 5, 2, " Kolossvary Tamas (thomas@vma.bme.hu)");
  44.  mvwaddstr(window, 6, 2, " Toth Istvan (stoty@vma.bme.hu)");
  45.  
  46.  wnoutrefresh(window);  
  47. }
  48.  
  49. void Welcome :: Delete(void)
  50. {
  51.  delwin(window);
  52.  touchwin(screen);
  53.  wnoutrefresh(screen);
  54. }
  55.